import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import fastclick from 'fastclick'
import VueCookies from 'vue-cookies'
import 'reset-css/reset.css'
import 'styles/border.css'
import { Search, Swipe, SwipeItem, Lazyload, Tabbar, TabbarItem, Loading } from 'vant'



Vue.use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Lazyload)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Loading)
  .use(VueCookies)
fastclick.attach(document.body)
Vue.config.productionTip = false

// ps. type=1(正式库), type=2(测试库)
// origin和type更改在 /src/store/actions.js

import wechatAuth from '@/utils/wechatAuth'

Vue.use(wechatAuth, {
  appid: process.env.VUE_APP_WECHAT_APPID,
  scope: 'snsapi_userinfo',
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
